function dijiaOptionFunction(valDate) {
  return {
    legend: {
      show: true,
    },
    grid: {
      left: "1%",
      right: "1%",
      bottom: "10%",
      top: "15%",
      containLabel: true,
    },
    tooltip: {
      trigger: "axis",
    },
    xAxis: {
      type: "category",
      data: valDate.fxDate,
    },
    yAxis: [
      {
        type: "value",
        name: "­°C",
        nameTextStyle: {
          color: "#4F5566",
          fontSize: 12,
          align: "right",
        },
        axisLabel: {
          show: true,
          color: "#4F5566",
          fontSize: 12,
          align: "center",
        },
      },
    ],
    series: [
      {
        name: "最高温度",
        data: valDate.tempMax,
        type: "line",
        yAxisIndex: 0,
      },
      {
        name: "最低温度",
        data: valDate.tempMin,
        type: "line",
        yAxisIndex: 0,
      },
    ],
  };
}

export { dijiaOptionFunction };
